package net.xiduth.game.player.controlers;

public class GodWars extends Controler {

	@Override
	public void start() {
		setArguments(new Object[] { 0, 0, 0, 0, 0, 0 });
		//sendInterfaces();
	}
	
	@Override
	public void sendInterfaces() {
		player.getInterfaceManager().removeAll();
		player.getInterfaceManager().sendTab(
		player.getInterfaceManager().hasRezizableScreen() ? 34 : 8, getInterface());
		player.getPackets().sendIComponentText(601, 8, ""+player.getArmadylKC());
		player.getPackets().sendIComponentText(601, 9, ""+player.getBandos());
		player.getPackets().sendIComponentText(601, 10, ""+player.getSaradominKC());
		player.getPackets().sendIComponentText(601, 11, ""+player.getZamorakKC());
	}
	
	private int getInterface() {
		return 601;
	}

	@Override
	public boolean sendDeath() {
		remove();
		removeControler();
		return true;
	}

	@Override
	public void magicTeleported(int type) {
		remove();
		removeControler();
	}

	@Override
	public void forceClose() {
		remove();
	}

	public void remove() {
		player.getPackets().closeInterface(
				player.getInterfaceManager().hasRezizableScreen() ? 34 : 8);
	}

}
